/**
 * Created by wdj on 16/4/21.
 * start
 */
var WebpackDevServer = require("webpack-dev-server");
var webpack = require("webpack");
var path = require('path');

var config = require("./webpack.config.js");
config.entry.app.unshift("webpack-dev-server/client?http://192.168.1.10:8080/", "webpack/hot/dev-server");
// console.log(config);
var compiler = webpack(config);
var server = new WebpackDevServer(compiler, {
    contentBase: path.join(__dirname, "dist"),
    hot: true,
    quiet: false,
    noInfo: false,
    lazy: true,
    stats: { colors: true },
    filename: "js/app.js"
});
server.listen(8082);